package cn.com.w.mongodb.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.time.LocalDateTime;


@Document(collection = "person_info")
@Data
@Accessors(chain = true)
public class PersonInfo {

    @Id
    private String id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "年龄")
    private Integer userAge;

    @ApiModelProperty(value = "身份征号码")
    private String userNo;

    @ApiModelProperty(value = "性别")
    private String userSex;

    @ApiModelProperty(value = "手机号")
    private String userPhone;

    @ApiModelProperty(value = "登录名")
    private String userLoginName;

    @ApiModelProperty(value = "密码")
    private String userPassword;

    @ApiModelProperty(value = "用户等级")
    private Integer userLevel;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记（0-未删除；1-已删除）")
    private Integer deleteFlag;

    @ApiModelProperty(value = "删除标记（0-未删除；1-已删除）")
    private Boolean deleted;

    public static void main(String[] args) {
        System.out.println("https://m.zhongheschool.com/page/msem/fashuo/bmzc.html?utm_source=sem_360_fashuo&utm_medium=cpc&utm_platform=1&utm_account=PC_360_zh_fashuo&utm_campaign=PC_fashuo_pinpai_pm&utm_content=pinpai_hexin_pm&utm_term=%E6%96%B9%E5%9C%86%E4%BC%97%E5%90%88%E6%B3%95%E7%A1%95");

        try {
            System.out.println(URLDecoder.decode("https://m.zhongheschool.com/page/msem/fashuo/bmzc.html?utm_source=sem_360_fashuo&utm_medium=cpc&utm_platform=1&utm_account=PC_360_zh_fashuo&utm_campaign=PC_fashuo_pinpai_pm&utm_content=pinpai_hexin_pm&utm_term=%E6%96%B9%E5%9C%86%E4%BC%97%E5%90%88%E6%B3%95%E7%A1%95", "utf-8"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
       // System.out.println("https://m.zhongheschool.com/page/msem/ttppxin.html?utm_source=sem_jinritoutiaosousuo&utm_medium=cpc&utm_platform=2&utm_account=M_jrttss_zh&utm_campaign=OCPC0105Mfakaotongyong_ss&utm_content=OCPC_0315_pinpaishipinhun&adid=1727348072097879&creativeid=1760872721417277&creativetype=15&clickid=EL2IuIiSsJADGPHlndDWAiC44eCY1IyJAjAMONC4AkIiMjAyMzA0MjYwNzUxMjU2NDM5MDA4MzNGMUFBMTMxMjY5Q0iQ8QSQAQA");
    }
}
